package org.codeart.factory.scheme02.service.impl;

import org.codeart.factory.scheme02.pojo.AwardInfo;
import org.codeart.factory.scheme02.pojo.ResponseInfo;
import org.codeart.factory.scheme02.service.IFreeGoods;

import java.util.Map;

public class VideoVipFreeGoods implements IFreeGoods {

    @Override
    public ResponseInfo sendFreeGoods(AwardInfo info) {
        Map<String, String> extraInfo = info.getExtraInfo();
        String phone = extraInfo.get("phone");
        System.out.println("发放视频会员成功, 绑定手机号: " + phone);
        return new ResponseInfo("200", "视频会员发放成功!");
    }
}
